class Solution:
    def idealArrays(self, n: int, maxValue: int) -> int:
        d = [1] * (maxValue + 1)
        #


maxValue = 420
factor = [[] for _ in range(maxValue + 1)]
for i in range(maxValue, maxValue + 1):
    j = 1
    while j * j <= i:
        if i % j == 0:
            factor[i].append(j)
            if i // j != j:
                factor[i].append(i // j)
        j += 1
mx = 0
# for i, v in enumerate(factor):
#     # if len(v) == 64:
#     print(i, v)
#     mx = max(mx, len(v))
# print(mx)

print(sorted(factor[-1]))
